
const http = require("http") //协议
const port = 3400 //端口
const host = "0.0.0.0" //主机  0.0.0.0就是localhost 

const server = http.createServer((req,res) =>{
    res.writeHead(200,{'content-type':'text/html;charset=utf8'})
    res.write('<h2>Hellow Word</h2>')
    res.write('<h2>展示实时刷新数据 无需重启服务器</h2>')
}).listen(port,host,()=>{
    console.log("node server is running at" + port)
})